#!/usr/bin/env python
#
# Copyright (C) 2011 Clement Lorteau <clem@lorteau.fr>	
#		
# This file is part of QuickScreenShots.		
# 	
# This program is free software; you can redistribute it and/or modify	
# it under the terms of the GNU General Public License as published by		
# the Free Software Foundation; version 3.	
# 	
# This program is distributed in the hope that it will be useful,		
# but WITHOUT ANY WARRANTY; without even the implied warranty of		
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the		
# GNU General Public License for more details.		
# 		
# You should have received a copy of the GNU General Public License		
# along with this program; if not, write to the Free Software		
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

import os
import sys
import platform

__version__ = '1.0'

#go to dir containing our script
is_frozen = hasattr(sys, "frozen")
if is_frozen and platform.system() == 'Windows':
    script_path = os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))
else:
    script_path = os.path.abspath(os.path.dirname(sys.argv[0]))
os.chdir(script_path)

"""Path to icons and sounds"""
resources = 'resources'

if platform.system() == 'Windows':
	logpath = os.path.join(os.getenv('APPDATA'), 'QuickScreenShots')
elif platform.system() == 'Darwin':
	logpath = os.path.join(os.getenv('HOME'), 'Library', 'Application Support',
						   'QuickScreenShots')
else:
	raise Exception('Platform unrecognized')
	
logfile = os.path.join(logpath, 'quickscrenshots.log')

